package org.example.springioc.component;

import org.example.springioc.model.UserInfo;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class UserInfoComponent {
    @Bean
    public UserInfo userInfo(){
        return new UserInfo("zhangsan", 18);
    }
    @Bean
    public UserInfo userInfo1(){
        return new UserInfo("lisi", 19);
    }
}
